package com.nxk.modules.core.web;

import com.nxk.modules.core.entity.SysColunm;
import com.nxk.modules.core.service.SysColunmService;
import com.nxk.modules.exception.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/a/core/colunm")
public class SysColunmController {

    @Autowired
    private SysColunmService sysColunmService;

    @PostMapping("/list")
    public ResultEntity list(SysColunm sysColunm){
        List<SysColunm> list = sysColunmService.list();
        return ResultEntity.success(list);
    }

}
